﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace IAnalyze
{
   /// <summary>
   /// 报警区域类型
   /// </summary>
    [Flags]
    public enum AlarmRegionEnum
    {
        /// <summary>
        /// 无效区域
        /// </summary>
        None = 0,      
        /// <summary>
        /// 火焰区域
        /// </summary>
        Fire = 1,      
        /// <summary>
        /// 烟雾区域
        /// </summary>
        Smoke = 2,      
        /// <summary>
        /// 运动区域
        /// </summary>
        Motion = 4     
    }
    /// <summary>
    /// 识别接口
    /// </summary>
    public interface IAnalyze
    {
        /// <summary>
        /// 重置状态
        /// </summary>
        void Reset();

        /// <summary>
        /// 分析视频帧
        /// </summary>
        /// <param name="frame">视频帧</param>
        /// <param name="image">帧图像</param>
        /// <param name="region">报警区域</param>
        /// <param name="regionType">区域类型</param>
        /// <returns>true表示成功，false表示失败</returns>
        bool Analyze(Bitmap image, out Rectangle[] region, out int[] regionType);
    }
}
